import {ColumnsUtil} from "@/utils";

export const APP_COLUMNS = [
    ColumnsUtil.normalColumn("程序TOKEN", "token",170,"left"),
    ColumnsUtil.normalColumn("程序标题", "name", 200,"left"),
    ColumnsUtil.normalColumn("实体名称", "beanName",250,"left"),
    ColumnsUtil.normalColumn("方法名称", "methodName",120),
    ColumnsUtil.tagColumn("方法类型", "parameterType", 100),
    ColumnsUtil.normalColumn("程序备注", "remark",0,"left"),
];

export const TASK_COLUMNS = [
    ColumnsUtil.normalColumn('任务名称', 'title', 220),
    ColumnsUtil.normalColumn('执行程序', 'app.name', 200),
    ColumnsUtil.normalColumn('时间表达式', 'cron', 170),
    ColumnsUtil.tagColumn('运行状态', 'state', 100),
    ColumnsUtil.normalColumn('方法参数', 'params', 200),
    ColumnsUtil.normalColumn('备注说明', 'remark' ,0),
    ColumnsUtil.normalColumn('最后执行时间', 'lastRunTime', 175),
    ColumnsUtil.actionColumn(190),

];

export const RECORD_COLUMNS = [
    ColumnsUtil.normalColumn("记录编号", "id",190,"left"),
    ColumnsUtil.normalColumn("执行任务", "task.title", 200,"left"),
    ColumnsUtil.tagColumn("执行方式", "runMode", 100),
    ColumnsUtil.tagColumn("执行结果", "runResult", 100),
    ColumnsUtil.normalColumn("执行信息", "message", 0),
    ColumnsUtil.normalColumn("指定时间", "runTime",175,"left"),
];
